package com.iot08.common.entity.admin;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;
import java.util.Date;

/**
 * @version 1.0
 * @Description: 渠道实体（旧版命名为代理商）
 * @time: 2020/8/13 18:21
 * @author: Rock
 */
@Data
@Document("channel")
public class Channel implements Serializable {
    private static final long serialVersionUID = 1L;

    @Field("_id")
    private String id;

    private String name;

    /**
     * 1=启用；0=禁用
     */
    private Integer status;

    private String account;

    private String password;

    /**
     * 代理商编号
     */
    @Field("channel_code")
    private Long channelCode;

    /**
     * 导入个数
     */
    @Field("import_num")
    private Integer importNum;

    /**
     * 激活个数
     */
    @Field("active_num")
    private Integer activeNum;

    /**
     * 视频(转移时长)
     */
    @Field("shift_limit")
    private Integer shiftLimit;

    /**
     * 解绑功能
     */
    private Integer unbundling;

    /**
     * 查看设备位置
     */
    private Integer canCheckPosition;

    /**
     * 查看设备激活状况
     */
    private Integer checkDActinoStatus;

    private String creator;

    private Date lasttime;

    private Integer deleted;

    @Field("create_time")
    private Date createTime;

    @Field("update_time")
    private Date updateTime;

}
